package com.xiaobaibai.vo;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.xiaobaibai.entity.Category;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

public class CategoryVo implements Serializable {

    private List<CategoryVo> childList;

    private String categoryName;

    private Integer id;

    @JsonGetter("children")
    public List<CategoryVo> getChildList() {
        return childList;
    }

    public void setChildList(List<CategoryVo> childList) {
        this.childList = childList;
    }

    @JsonGetter("label")
    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @JsonGetter("value")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
